<?php



class InvoiceAmountsMapBuilder implements MapBuilder {

	
	const CLASS_NAME = 'lib.model.map.InvoiceAmountsMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap(InvoiceAmountsPeer::DATABASE_NAME);

		$tMap = $this->dbMap->addTable(InvoiceAmountsPeer::TABLE_NAME);
		$tMap->setPhpName('InvoiceAmounts');
		$tMap->setClassname('InvoiceAmounts');

		$tMap->setUseIdGenerator(false);

		$tMap->addForeignPrimaryKey('INVOICE_IDEN', 'InvoiceIden', 'VARCHAR' , 'invoice', 'INVOICE_IDEN', true, 20);

		$tMap->addPrimaryKey('AMOUNT_IDEN', 'AmountIden', 'VARCHAR', true, 20);

		$tMap->addColumn('AMOUNT', 'Amount', 'DOUBLE', true, null);

		$tMap->addColumn('DISCOUNT1', 'Discount1', 'INTEGER', true, 10);

		$tMap->addColumn('DISCOUNT2', 'Discount2', 'INTEGER', true, 10);

		$tMap->addColumn('DISCOUNT3', 'Discount3', 'INTEGER', true, 10);

		$tMap->addColumn('DISCOUNT4', 'Discount4', 'INTEGER', true, 10);

		$tMap->addColumn('DESCRIPTION', 'Description', 'VARCHAR', true, 500);

	} 
} 